<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.3"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>SSDP Help: D:/doxy/PublicAPI/ATGeometrySet/XSegment3d.h 源文件</title>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../dynsections.js"></script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">SSDP Help<span id="projectnumber">&#160;2.04.01</span>
   </div>
   <div id="projectbrief">仅供测试</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.3 -->
<script type="text/javascript" src="../../menudata.js"></script>
<script type="text/javascript" src="../../menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('../../',false,false,'search.php','搜索');
});
/* @license-end */
</script>
<div id="main-nav"></div>
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="../../dir_52a01df1794e5beec01860bdd05aea48.html">PublicAPI</a></li><li class="navelem"><a class="el" href="../../dir_3ae1ea863de6943fe2c5c18439480f66.html">ATGeometrySet</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle"><div class="title">XSegment3d.h</div></div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno">    1</span> </div>
<div class="line"><a id="l00002" name="l00002"></a><span class="lineno">    2</span><span class="preprocessor">#pragma once</span></div>
<div class="line"><a id="l00003" name="l00003"></a><span class="lineno">    3</span> </div>
<div class="line"><a id="l00004" name="l00004"></a><span class="lineno">    4</span>BEGIN_ATEC_NAMESPACE</div>
<div class="line"><a id="l00005" name="l00005"></a><span class="lineno">    5</span> </div>
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno"><a class="line" href="../../dc/dfa/struct_x_segment3d.html">   11</a></span><span class="keyword">struct </span>ATGEOSET_EXPORT <a class="code hl_struct" href="../../dc/dfa/struct_x_segment3d.html">XSegment3d</a></div>
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno">   12</span>{</div>
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno">   13</span> </div>
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno">   14</span>    <a class="code hl_struct" href="../../d5/d5b/struct_x_point3d.html">XPoint3d</a> point[2];</div>
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno">   15</span> </div>
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno"><a class="line" href="../../dc/dfa/struct_x_segment3d.html#a17eb06292464a7e4bd270f0a66261a86">   27</a></span>    <span class="keyword">static</span> <a class="code hl_struct" href="../../dc/dfa/struct_x_segment3d.html">XSegment3d</a> <a class="code hl_function" href="../../dc/dfa/struct_x_segment3d.html#a17eb06292464a7e4bd270f0a66261a86">FromOriginAndDirection</a></div>
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno">   28</span>    (</div>
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno">   29</span>        XPoint3dCR      pnt0,</div>
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno">   30</span>        XPoint3dCR      tangent</div>
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno">   31</span>    );</div>
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno">   32</span> </div>
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno"><a class="line" href="../../dc/dfa/struct_x_segment3d.html#a82197236bebccb2fa41d1fe69d026feb">   42</a></span>    <span class="keyword">static</span> <a class="code hl_struct" href="../../dc/dfa/struct_x_segment3d.html">XSegment3d</a> <a class="code hl_function" href="../../dc/dfa/struct_x_segment3d.html#a82197236bebccb2fa41d1fe69d026feb">FromZero</a>();</div>
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno">   43</span> </div>
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno">   44</span>    <span class="keywordtype">void</span> InitProduct(TransformCR transform, XSegment3dCR other);</div>
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno">   45</span> </div>
<div class="line"><a id="l00056" name="l00056"></a><span class="lineno"><a class="line" href="../../dc/dfa/struct_x_segment3d.html#adf68a478942fe964ab17f8ee680e31aa">   56</a></span>    <span class="keyword">static</span> <a class="code hl_struct" href="../../dc/dfa/struct_x_segment3d.html">XSegment3d</a> <a class="code hl_function" href="../../dc/dfa/struct_x_segment3d.html#adf68a478942fe964ab17f8ee680e31aa">From</a>(XRay3dCR ray);</div>
<div class="line"><a id="l00057" name="l00057"></a><span class="lineno">   57</span> </div>
<div class="line"><a id="l00073" name="l00073"></a><span class="lineno"><a class="line" href="../../dc/dfa/struct_x_segment3d.html#ae926ffc3541a7a13f3dcdab2d17f3b95">   73</a></span>    <span class="keyword">static</span> <a class="code hl_struct" href="../../dc/dfa/struct_x_segment3d.html">XSegment3d</a> <a class="code hl_function" href="../../dc/dfa/struct_x_segment3d.html#ae926ffc3541a7a13f3dcdab2d17f3b95">From</a></div>
<div class="line"><a id="l00074" name="l00074"></a><span class="lineno">   74</span>    (</div>
<div class="line"><a id="l00075" name="l00075"></a><span class="lineno">   75</span>        <span class="keywordtype">double</span>          x0,</div>
<div class="line"><a id="l00076" name="l00076"></a><span class="lineno">   76</span>        <span class="keywordtype">double</span>          y0,</div>
<div class="line"><a id="l00077" name="l00077"></a><span class="lineno">   77</span>        <span class="keywordtype">double</span>          z0,</div>
<div class="line"><a id="l00078" name="l00078"></a><span class="lineno">   78</span>        <span class="keywordtype">double</span>          x1,</div>
<div class="line"><a id="l00079" name="l00079"></a><span class="lineno">   79</span>        <span class="keywordtype">double</span>          y1,</div>
<div class="line"><a id="l00080" name="l00080"></a><span class="lineno">   80</span>        <span class="keywordtype">double</span>          z1</div>
<div class="line"><a id="l00081" name="l00081"></a><span class="lineno">   81</span>    );</div>
<div class="line"><a id="l00082" name="l00082"></a><span class="lineno">   82</span> </div>
<div class="line"><a id="l00094" name="l00094"></a><span class="lineno"><a class="line" href="../../dc/dfa/struct_x_segment3d.html#a0f9b87d547b9e309e611c0761f4aa26f">   94</a></span>    <span class="keyword">static</span> <a class="code hl_struct" href="../../dc/dfa/struct_x_segment3d.html">XSegment3d</a> <a class="code hl_function" href="../../dc/dfa/struct_x_segment3d.html#a0f9b87d547b9e309e611c0761f4aa26f">From</a></div>
<div class="line"><a id="l00095" name="l00095"></a><span class="lineno">   95</span>    (</div>
<div class="line"><a id="l00096" name="l00096"></a><span class="lineno">   96</span>        XPoint3dCR      pnt0,</div>
<div class="line"><a id="l00097" name="l00097"></a><span class="lineno">   97</span>        XPoint3dCR      point1</div>
<div class="line"><a id="l00098" name="l00098"></a><span class="lineno">   98</span>    );</div>
<div class="line"><a id="l00099" name="l00099"></a><span class="lineno">   99</span> </div>
<div class="line"><a id="l00111" name="l00111"></a><span class="lineno"><a class="line" href="../../dc/dfa/struct_x_segment3d.html#a6e613f9ccc9dc8473f7687edbb351ce5">  111</a></span>    <span class="keyword">static</span> <a class="code hl_struct" href="../../dc/dfa/struct_x_segment3d.html">XSegment3d</a> <a class="code hl_function" href="../../dc/dfa/struct_x_segment3d.html#a6e613f9ccc9dc8473f7687edbb351ce5">From</a>(XPoint2dCR pnt0, XPoint2dCR point1);</div>
<div class="line"><a id="l00112" name="l00112"></a><span class="lineno">  112</span> </div>
<div class="line"><a id="l00128" name="l00128"></a><span class="lineno"><a class="line" href="../../dc/dfa/struct_x_segment3d.html#a5cb67184eb21621ae8e04dff2fad01aa">  128</a></span>    <span class="keywordtype">void</span> <a class="code hl_function" href="../../dc/dfa/struct_x_segment3d.html#a5cb67184eb21621ae8e04dff2fad01aa">Init</a></div>
<div class="line"><a id="l00129" name="l00129"></a><span class="lineno">  129</span>    (</div>
<div class="line"><a id="l00130" name="l00130"></a><span class="lineno">  130</span>        <span class="keywordtype">double</span>          x0,</div>
<div class="line"><a id="l00131" name="l00131"></a><span class="lineno">  131</span>        <span class="keywordtype">double</span>          y0,</div>
<div class="line"><a id="l00132" name="l00132"></a><span class="lineno">  132</span>        <span class="keywordtype">double</span>          z0,</div>
<div class="line"><a id="l00133" name="l00133"></a><span class="lineno">  133</span>        <span class="keywordtype">double</span>          x1,</div>
<div class="line"><a id="l00134" name="l00134"></a><span class="lineno">  134</span>        <span class="keywordtype">double</span>          y1,</div>
<div class="line"><a id="l00135" name="l00135"></a><span class="lineno">  135</span>        <span class="keywordtype">double</span>          z1</div>
<div class="line"><a id="l00136" name="l00136"></a><span class="lineno">  136</span>    );</div>
<div class="line"><a id="l00137" name="l00137"></a><span class="lineno">  137</span> </div>
<div class="line"><a id="l00149" name="l00149"></a><span class="lineno"><a class="line" href="../../dc/dfa/struct_x_segment3d.html#a583bfb0c1da9b78490070e4b5af8fb9f">  149</a></span>    <span class="keywordtype">void</span> <a class="code hl_function" href="../../dc/dfa/struct_x_segment3d.html#a583bfb0c1da9b78490070e4b5af8fb9f">Init</a></div>
<div class="line"><a id="l00150" name="l00150"></a><span class="lineno">  150</span>    (</div>
<div class="line"><a id="l00151" name="l00151"></a><span class="lineno">  151</span>        XPoint3dCR      pnt0,</div>
<div class="line"><a id="l00152" name="l00152"></a><span class="lineno">  152</span>        XPoint3dCR      point1</div>
<div class="line"><a id="l00153" name="l00153"></a><span class="lineno">  153</span>    );</div>
<div class="line"><a id="l00154" name="l00154"></a><span class="lineno">  154</span> </div>
<div class="line"><a id="l00166" name="l00166"></a><span class="lineno"><a class="line" href="../../dc/dfa/struct_x_segment3d.html#ae67ca6f5f9aa1a4a5aa24b69fe7868e6">  166</a></span>    <span class="keywordtype">void</span> <a class="code hl_function" href="../../dc/dfa/struct_x_segment3d.html#ae67ca6f5f9aa1a4a5aa24b69fe7868e6">Init</a></div>
<div class="line"><a id="l00167" name="l00167"></a><span class="lineno">  167</span>    (</div>
<div class="line"><a id="l00168" name="l00168"></a><span class="lineno">  168</span>        XPoint2dCR      pnt0,</div>
<div class="line"><a id="l00169" name="l00169"></a><span class="lineno">  169</span>        XPoint2dCR      point1</div>
<div class="line"><a id="l00170" name="l00170"></a><span class="lineno">  170</span>    );</div>
<div class="line"><a id="l00171" name="l00171"></a><span class="lineno">  171</span> </div>
<div class="line"><a id="l00183" name="l00183"></a><span class="lineno"><a class="line" href="../../dc/dfa/struct_x_segment3d.html#a0704a2e4a4a2f8b44c1a6402dc028c87">  183</a></span>    <span class="keywordtype">void</span> <a class="code hl_function" href="../../dc/dfa/struct_x_segment3d.html#a0704a2e4a4a2f8b44c1a6402dc028c87">InitFromOriginAndDirection</a></div>
<div class="line"><a id="l00184" name="l00184"></a><span class="lineno">  184</span>    (</div>
<div class="line"><a id="l00185" name="l00185"></a><span class="lineno">  185</span>        XPoint3dCR      pnt0,</div>
<div class="line"><a id="l00186" name="l00186"></a><span class="lineno">  186</span>        XPoint3dCR      tangent</div>
<div class="line"><a id="l00187" name="l00187"></a><span class="lineno">  187</span>    );</div>
<div class="line"><a id="l00188" name="l00188"></a><span class="lineno">  188</span> </div>
<div class="line"><a id="l00199" name="l00199"></a><span class="lineno"><a class="line" href="../../dc/dfa/struct_x_segment3d.html#a0b6f552bbe38514b529b62dbab06b761">  199</a></span>    <span class="keywordtype">void</span> <a class="code hl_function" href="../../dc/dfa/struct_x_segment3d.html#a0b6f552bbe38514b529b62dbab06b761">InitFrom</a>(XRay3dCR ray);</div>
<div class="line"><a id="l00200" name="l00200"></a><span class="lineno">  200</span> </div>
<div class="line"><a id="l00212" name="l00212"></a><span class="lineno"><a class="line" href="../../dc/dfa/struct_x_segment3d.html#a0336b784bc1c5eb186887c89b56feeb2">  212</a></span>    <span class="keywordtype">void</span> <a class="code hl_function" href="../../dc/dfa/struct_x_segment3d.html#a0336b784bc1c5eb186887c89b56feeb2">GetEndPoints</a></div>
<div class="line"><a id="l00213" name="l00213"></a><span class="lineno">  213</span>    (</div>
<div class="line"><a id="l00214" name="l00214"></a><span class="lineno">  214</span>        XPoint3dR       pnt0,</div>
<div class="line"><a id="l00215" name="l00215"></a><span class="lineno">  215</span>        XPoint3dR       point1</div>
<div class="line"><a id="l00216" name="l00216"></a><span class="lineno">  216</span>    ) <span class="keyword">const</span>;</div>
<div class="line"><a id="l00217" name="l00217"></a><span class="lineno">  217</span> </div>
<div class="line"><a id="l00228" name="l00228"></a><span class="lineno"><a class="line" href="../../dc/dfa/struct_x_segment3d.html#ab058ce299b83943b7c200f04a22adf07">  228</a></span>    <span class="keywordtype">bool</span> <a class="code hl_function" href="../../dc/dfa/struct_x_segment3d.html#ab058ce299b83943b7c200f04a22adf07">GetRange</a>(XRange3dR range) <span class="keyword">const</span>;</div>
<div class="line"><a id="l00229" name="l00229"></a><span class="lineno">  229</span> </div>
<div class="line"><a id="l00242" name="l00242"></a><span class="lineno"><a class="line" href="../../dc/dfa/struct_x_segment3d.html#a96c349a3e9086d88f74a1e4588a4f379">  242</a></span>    <span class="keywordtype">bool</span> <a class="code hl_function" href="../../dc/dfa/struct_x_segment3d.html#a96c349a3e9086d88f74a1e4588a4f379">ProjectPoint</a></div>
<div class="line"><a id="l00243" name="l00243"></a><span class="lineno">  243</span>    (</div>
<div class="line"><a id="l00244" name="l00244"></a><span class="lineno">  244</span>        XPoint3dR       closestPoint,</div>
<div class="line"><a id="l00245" name="l00245"></a><span class="lineno">  245</span>        <span class="keywordtype">double</span>          &amp;closestParam,</div>
<div class="line"><a id="l00246" name="l00246"></a><span class="lineno">  246</span>        XPoint3dCR      point</div>
<div class="line"><a id="l00247" name="l00247"></a><span class="lineno">  247</span>    ) <span class="keyword">const</span>;</div>
<div class="line"><a id="l00248" name="l00248"></a><span class="lineno">  248</span> </div>
<div class="line"><a id="l00261" name="l00261"></a><span class="lineno"><a class="line" href="../../dc/dfa/struct_x_segment3d.html#a8a0ba332460bc54d1a0de5d0a7c29167">  261</a></span>    <span class="keywordtype">bool</span> <a class="code hl_function" href="../../dc/dfa/struct_x_segment3d.html#a8a0ba332460bc54d1a0de5d0a7c29167">ProjectPointXY</a></div>
<div class="line"><a id="l00262" name="l00262"></a><span class="lineno">  262</span>    (</div>
<div class="line"><a id="l00263" name="l00263"></a><span class="lineno">  263</span>        XPoint3dR       closestPoint,</div>
<div class="line"><a id="l00264" name="l00264"></a><span class="lineno">  264</span>        <span class="keywordtype">double</span>          &amp;closestParam,</div>
<div class="line"><a id="l00265" name="l00265"></a><span class="lineno">  265</span>        XPoint3dCR      point</div>
<div class="line"><a id="l00266" name="l00266"></a><span class="lineno">  266</span>    ) <span class="keyword">const</span>;</div>
<div class="line"><a id="l00267" name="l00267"></a><span class="lineno">  267</span> </div>
<div class="line"><a id="l00280" name="l00280"></a><span class="lineno"><a class="line" href="../../dc/dfa/struct_x_segment3d.html#a0214e55f21a9b26340e7aa9d326af7f7">  280</a></span>    <span class="keywordtype">bool</span> <a class="code hl_function" href="../../dc/dfa/struct_x_segment3d.html#a0214e55f21a9b26340e7aa9d326af7f7">Intersect</a></div>
<div class="line"><a id="l00281" name="l00281"></a><span class="lineno">  281</span>    (</div>
<div class="line"><a id="l00282" name="l00282"></a><span class="lineno">  282</span>        XPoint3dR       intPoint,</div>
<div class="line"><a id="l00283" name="l00283"></a><span class="lineno">  283</span>        <span class="keywordtype">double</span>          &amp;intParam,</div>
<div class="line"><a id="l00284" name="l00284"></a><span class="lineno">  284</span>        XPlane3dCR      plane</div>
<div class="line"><a id="l00285" name="l00285"></a><span class="lineno">  285</span>    ) <span class="keyword">const</span>;</div>
<div class="line"><a id="l00286" name="l00286"></a><span class="lineno">  286</span> </div>
<div class="line"><a id="l00297" name="l00297"></a><span class="lineno"><a class="line" href="../../dc/dfa/struct_x_segment3d.html#a092e3e1f6e0afce8f87311c6f515491b">  297</a></span>    <span class="keywordtype">void</span> <a class="code hl_function" href="../../dc/dfa/struct_x_segment3d.html#a092e3e1f6e0afce8f87311c6f515491b">GetStartPoint</a>(XPoint3dR pt) <span class="keyword">const</span>;</div>
<div class="line"><a id="l00298" name="l00298"></a><span class="lineno">  298</span> </div>
<div class="line"><a id="l00309" name="l00309"></a><span class="lineno"><a class="line" href="../../dc/dfa/struct_x_segment3d.html#aba1efa080492a585ffe57d970165e06b">  309</a></span>    <span class="keywordtype">void</span> <a class="code hl_function" href="../../dc/dfa/struct_x_segment3d.html#aba1efa080492a585ffe57d970165e06b">GetEndPoint</a>(XPoint3dR pt) <span class="keyword">const</span>;</div>
<div class="line"><a id="l00310" name="l00310"></a><span class="lineno">  310</span> </div>
<div class="line"><a id="l00321" name="l00321"></a><span class="lineno"><a class="line" href="../../dc/dfa/struct_x_segment3d.html#a16cd7b42d9259885c8d89fc3e64e096f">  321</a></span>    <span class="keywordtype">void</span> <a class="code hl_function" href="../../dc/dfa/struct_x_segment3d.html#a16cd7b42d9259885c8d89fc3e64e096f">SetStartPoint</a>(XPoint3dCR point);</div>
<div class="line"><a id="l00322" name="l00322"></a><span class="lineno">  322</span> </div>
<div class="line"><a id="l00333" name="l00333"></a><span class="lineno"><a class="line" href="../../dc/dfa/struct_x_segment3d.html#a29b9a208206f6347f6966c0ad752df72">  333</a></span>    <span class="keywordtype">void</span> <a class="code hl_function" href="../../dc/dfa/struct_x_segment3d.html#a29b9a208206f6347f6966c0ad752df72">SetEndPoint</a>(XPoint3dCR point);</div>
<div class="line"><a id="l00334" name="l00334"></a><span class="lineno">  334</span> </div>
<div class="line"><a id="l00345" name="l00345"></a><span class="lineno"><a class="line" href="../../dc/dfa/struct_x_segment3d.html#a6bc348097a6e197bdc2fed431f189800">  345</a></span>    <a class="code hl_struct" href="../../d5/d5b/struct_x_point3d.html">XPoint3d</a> <a class="code hl_function" href="../../dc/dfa/struct_x_segment3d.html#a6bc348097a6e197bdc2fed431f189800">FractionToPoint</a>(<span class="keywordtype">double</span> fraction) <span class="keyword">const</span>;</div>
<div class="line"><a id="l00346" name="l00346"></a><span class="lineno">  346</span> </div>
<div class="line"><a id="l00358" name="l00358"></a><span class="lineno"><a class="line" href="../../dc/dfa/struct_x_segment3d.html#af39dd63c7f943a017f11ee7b8cf5d8eb">  358</a></span>    <span class="keywordtype">bool</span> <a class="code hl_function" href="../../dc/dfa/struct_x_segment3d.html#af39dd63c7f943a017f11ee7b8cf5d8eb">PointToFractionParameter</a></div>
<div class="line"><a id="l00359" name="l00359"></a><span class="lineno">  359</span>    (</div>
<div class="line"><a id="l00360" name="l00360"></a><span class="lineno">  360</span>        <span class="keywordtype">double</span>          &amp;param,</div>
<div class="line"><a id="l00361" name="l00361"></a><span class="lineno">  361</span>        XPoint3dCR      point</div>
<div class="line"><a id="l00362" name="l00362"></a><span class="lineno">  362</span>    ) <span class="keyword">const</span>;</div>
<div class="line"><a id="l00363" name="l00363"></a><span class="lineno">  363</span> </div>
<div class="line"><a id="l00376" name="l00376"></a><span class="lineno"><a class="line" href="../../dc/dfa/struct_x_segment3d.html#ada3ff69cf417b8ad451fc96b6b3d8d47">  376</a></span>    <span class="keywordtype">bool</span> <a class="code hl_function" href="../../dc/dfa/struct_x_segment3d.html#ada3ff69cf417b8ad451fc96b6b3d8d47">FractionParameterToTangent</a></div>
<div class="line"><a id="l00377" name="l00377"></a><span class="lineno">  377</span>    (</div>
<div class="line"><a id="l00378" name="l00378"></a><span class="lineno">  378</span>        XPoint3dR       point,</div>
<div class="line"><a id="l00379" name="l00379"></a><span class="lineno">  379</span>        XVec3dR       tangent,</div>
<div class="line"><a id="l00380" name="l00380"></a><span class="lineno">  380</span>        <span class="keywordtype">double</span>          param</div>
<div class="line"><a id="l00381" name="l00381"></a><span class="lineno">  381</span>    ) <span class="keyword">const</span>;</div>
<div class="line"><a id="l00382" name="l00382"></a><span class="lineno">  382</span> </div>
<div class="line"><a id="l00392" name="l00392"></a><span class="lineno"><a class="line" href="../../dc/dfa/struct_x_segment3d.html#a7b915ad581dde2135db888cda90c6708">  392</a></span>    <span class="keywordtype">double</span> <a class="code hl_function" href="../../dc/dfa/struct_x_segment3d.html#a7b915ad581dde2135db888cda90c6708">Length</a>() <span class="keyword">const</span>;</div>
<div class="line"><a id="l00393" name="l00393"></a><span class="lineno">  393</span> </div>
<div class="line"><a id="l00408" name="l00408"></a><span class="lineno"><a class="line" href="../../dc/dfa/struct_x_segment3d.html#a943ae0113f607bdbbb25c2515db483dd">  408</a></span>    <span class="keyword">static</span> <span class="keywordtype">void</span>   <a class="code hl_function" href="../../dc/dfa/struct_x_segment3d.html#a943ae0113f607bdbbb25c2515db483dd">ClosestApproachBounded</a></div>
<div class="line"><a id="l00409" name="l00409"></a><span class="lineno">  409</span>        (</div>
<div class="line"><a id="l00410" name="l00410"></a><span class="lineno">  410</span>        <span class="keywordtype">double</span>      &amp;fraction0,</div>
<div class="line"><a id="l00411" name="l00411"></a><span class="lineno">  411</span>        <span class="keywordtype">double</span>      &amp;fraction1,</div>
<div class="line"><a id="l00412" name="l00412"></a><span class="lineno">  412</span>        XPoint3dR    pnt0,</div>
<div class="line"><a id="l00413" name="l00413"></a><span class="lineno">  413</span>        XPoint3dR    point1,</div>
<div class="line"><a id="l00414" name="l00414"></a><span class="lineno">  414</span>        XSegment3dCR seg0,</div>
<div class="line"><a id="l00415" name="l00415"></a><span class="lineno">  415</span>        XSegment3dCR seg1</div>
<div class="line"><a id="l00416" name="l00416"></a><span class="lineno">  416</span>        );</div>
<div class="line"><a id="l00417" name="l00417"></a><span class="lineno">  417</span> </div>
<div class="line"><a id="l00432" name="l00432"></a><span class="lineno"><a class="line" href="../../dc/dfa/struct_x_segment3d.html#a911cbae6465ac42bf498acf37baa7eac">  432</a></span>    <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="../../dc/dfa/struct_x_segment3d.html#a911cbae6465ac42bf498acf37baa7eac">ClosestApproachUnbounded</a></div>
<div class="line"><a id="l00433" name="l00433"></a><span class="lineno">  433</span>    (</div>
<div class="line"><a id="l00434" name="l00434"></a><span class="lineno">  434</span>        <span class="keywordtype">double</span>      &amp;fraction0,</div>
<div class="line"><a id="l00435" name="l00435"></a><span class="lineno">  435</span>        <span class="keywordtype">double</span>      &amp;fraction1,</div>
<div class="line"><a id="l00436" name="l00436"></a><span class="lineno">  436</span>        XPoint3dR    pnt0,</div>
<div class="line"><a id="l00437" name="l00437"></a><span class="lineno">  437</span>        XPoint3dR    point1,</div>
<div class="line"><a id="l00438" name="l00438"></a><span class="lineno">  438</span>        XSegment3dCR seg0,</div>
<div class="line"><a id="l00439" name="l00439"></a><span class="lineno">  439</span>        XSegment3dCR seg1</div>
<div class="line"><a id="l00440" name="l00440"></a><span class="lineno">  440</span>    );</div>
<div class="line"><a id="l00441" name="l00441"></a><span class="lineno">  441</span> </div>
<div class="line"><a id="l00456" name="l00456"></a><span class="lineno"><a class="line" href="../../dc/dfa/struct_x_segment3d.html#af76ba47126d3255b1fd563096aea16b0">  456</a></span>    <span class="keyword">static</span> <span class="keywordtype">void</span>   <a class="code hl_function" href="../../dc/dfa/struct_x_segment3d.html#af76ba47126d3255b1fd563096aea16b0">ClosestApproachBoundedXY</a></div>
<div class="line"><a id="l00457" name="l00457"></a><span class="lineno">  457</span>    (</div>
<div class="line"><a id="l00458" name="l00458"></a><span class="lineno">  458</span>    <span class="keywordtype">double</span>      &amp;fraction0,</div>
<div class="line"><a id="l00459" name="l00459"></a><span class="lineno">  459</span>    <span class="keywordtype">double</span>      &amp;fraction1,</div>
<div class="line"><a id="l00460" name="l00460"></a><span class="lineno">  460</span>    XPoint3dR    pnt0,</div>
<div class="line"><a id="l00461" name="l00461"></a><span class="lineno">  461</span>    XPoint3dR    point1,</div>
<div class="line"><a id="l00462" name="l00462"></a><span class="lineno">  462</span>    XSegment3dCR seg0,</div>
<div class="line"><a id="l00463" name="l00463"></a><span class="lineno">  463</span>    XSegment3dCR seg1</div>
<div class="line"><a id="l00464" name="l00464"></a><span class="lineno">  464</span>    );</div>
<div class="line"><a id="l00465" name="l00465"></a><span class="lineno">  465</span> </div>
<div class="line"><a id="l00481" name="l00481"></a><span class="lineno"><a class="line" href="../../dc/dfa/struct_x_segment3d.html#abc7f02d606ddd76daa971834a52c0729">  481</a></span>    <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="../../dc/dfa/struct_x_segment3d.html#abc7f02d606ddd76daa971834a52c0729">IntersectXY</a></div>
<div class="line"><a id="l00482" name="l00482"></a><span class="lineno">  482</span>    (</div>
<div class="line"><a id="l00483" name="l00483"></a><span class="lineno">  483</span>        <span class="keywordtype">double</span>          &amp;fractionA,</div>
<div class="line"><a id="l00484" name="l00484"></a><span class="lineno">  484</span>        <span class="keywordtype">double</span>          &amp;fractionB,</div>
<div class="line"><a id="l00485" name="l00485"></a><span class="lineno">  485</span>        XPoint3dR       pntA,</div>
<div class="line"><a id="l00486" name="l00486"></a><span class="lineno">  486</span>        XPoint3dR       pntB,</div>
<div class="line"><a id="l00487" name="l00487"></a><span class="lineno">  487</span>        XSegment3dCR    segA,</div>
<div class="line"><a id="l00488" name="l00488"></a><span class="lineno">  488</span>        XSegment3dCR    segB</div>
<div class="line"><a id="l00489" name="l00489"></a><span class="lineno">  489</span>    );</div>
<div class="line"><a id="l00490" name="l00490"></a><span class="lineno">  490</span> </div>
<div class="line"><a id="l00491" name="l00491"></a><span class="lineno">  491</span>};</div>
<div class="line"><a id="l00492" name="l00492"></a><span class="lineno">  492</span> </div>
<div class="line"><a id="l00493" name="l00493"></a><span class="lineno">  493</span>END_ATEC_NAMESPACE</div>
<div class="line"><a id="l00494" name="l00494"></a><span class="lineno">  494</span> </div>
<div class="ttc" id="astruct_x_point3d_html"><div class="ttname"><a href="../../d5/d5b/struct_x_point3d.html">XPoint3d</a></div><div class="ttdoc">3D空间点类</div><div class="ttdef"><b>Definition:</b> XPoint3d.h:12</div></div>
<div class="ttc" id="astruct_x_segment3d_html"><div class="ttname"><a href="../../dc/dfa/struct_x_segment3d.html">XSegment3d</a></div><div class="ttdoc">三维线段类</div><div class="ttdef"><b>Definition:</b> XSegment3d.h:12</div></div>
<div class="ttc" id="astruct_x_segment3d_html_a0214e55f21a9b26340e7aa9d326af7f7"><div class="ttname"><a href="../../dc/dfa/struct_x_segment3d.html#a0214e55f21a9b26340e7aa9d326af7f7">XSegment3d::Intersect</a></div><div class="ttdeci">bool Intersect(XPoint3dR intPoint, double &amp;intParam, XPlane3dCR plane) const</div><div class="ttdoc">计算交点</div></div>
<div class="ttc" id="astruct_x_segment3d_html_a0336b784bc1c5eb186887c89b56feeb2"><div class="ttname"><a href="../../dc/dfa/struct_x_segment3d.html#a0336b784bc1c5eb186887c89b56feeb2">XSegment3d::GetEndPoints</a></div><div class="ttdeci">void GetEndPoints(XPoint3dR pnt0, XPoint3dR point1) const</div><div class="ttdoc">获取端点</div></div>
<div class="ttc" id="astruct_x_segment3d_html_a0704a2e4a4a2f8b44c1a6402dc028c87"><div class="ttname"><a href="../../dc/dfa/struct_x_segment3d.html#a0704a2e4a4a2f8b44c1a6402dc028c87">XSegment3d::InitFromOriginAndDirection</a></div><div class="ttdeci">void InitFromOriginAndDirection(XPoint3dCR pnt0, XPoint3dCR tangent)</div><div class="ttdoc">初始化数据</div></div>
<div class="ttc" id="astruct_x_segment3d_html_a092e3e1f6e0afce8f87311c6f515491b"><div class="ttname"><a href="../../dc/dfa/struct_x_segment3d.html#a092e3e1f6e0afce8f87311c6f515491b">XSegment3d::GetStartPoint</a></div><div class="ttdeci">void GetStartPoint(XPoint3dR pt) const</div><div class="ttdoc">获取起点</div></div>
<div class="ttc" id="astruct_x_segment3d_html_a0b6f552bbe38514b529b62dbab06b761"><div class="ttname"><a href="../../dc/dfa/struct_x_segment3d.html#a0b6f552bbe38514b529b62dbab06b761">XSegment3d::InitFrom</a></div><div class="ttdeci">void InitFrom(XRay3dCR ray)</div><div class="ttdoc">初始化数据</div></div>
<div class="ttc" id="astruct_x_segment3d_html_a0f9b87d547b9e309e611c0761f4aa26f"><div class="ttname"><a href="../../dc/dfa/struct_x_segment3d.html#a0f9b87d547b9e309e611c0761f4aa26f">XSegment3d::From</a></div><div class="ttdeci">static XSegment3d From(XPoint3dCR pnt0, XPoint3dCR point1)</div><div class="ttdoc">创建函数</div></div>
<div class="ttc" id="astruct_x_segment3d_html_a16cd7b42d9259885c8d89fc3e64e096f"><div class="ttname"><a href="../../dc/dfa/struct_x_segment3d.html#a16cd7b42d9259885c8d89fc3e64e096f">XSegment3d::SetStartPoint</a></div><div class="ttdeci">void SetStartPoint(XPoint3dCR point)</div><div class="ttdoc">设置起点</div></div>
<div class="ttc" id="astruct_x_segment3d_html_a17eb06292464a7e4bd270f0a66261a86"><div class="ttname"><a href="../../dc/dfa/struct_x_segment3d.html#a17eb06292464a7e4bd270f0a66261a86">XSegment3d::FromOriginAndDirection</a></div><div class="ttdeci">static XSegment3d FromOriginAndDirection(XPoint3dCR pnt0, XPoint3dCR tangent)</div><div class="ttdoc">创建函数</div></div>
<div class="ttc" id="astruct_x_segment3d_html_a29b9a208206f6347f6966c0ad752df72"><div class="ttname"><a href="../../dc/dfa/struct_x_segment3d.html#a29b9a208206f6347f6966c0ad752df72">XSegment3d::SetEndPoint</a></div><div class="ttdeci">void SetEndPoint(XPoint3dCR point)</div><div class="ttdoc">设置终点</div></div>
<div class="ttc" id="astruct_x_segment3d_html_a583bfb0c1da9b78490070e4b5af8fb9f"><div class="ttname"><a href="../../dc/dfa/struct_x_segment3d.html#a583bfb0c1da9b78490070e4b5af8fb9f">XSegment3d::Init</a></div><div class="ttdeci">void Init(XPoint3dCR pnt0, XPoint3dCR point1)</div><div class="ttdoc">初始化数据</div></div>
<div class="ttc" id="astruct_x_segment3d_html_a5cb67184eb21621ae8e04dff2fad01aa"><div class="ttname"><a href="../../dc/dfa/struct_x_segment3d.html#a5cb67184eb21621ae8e04dff2fad01aa">XSegment3d::Init</a></div><div class="ttdeci">void Init(double x0, double y0, double z0, double x1, double y1, double z1)</div><div class="ttdoc">初始化数据</div></div>
<div class="ttc" id="astruct_x_segment3d_html_a6bc348097a6e197bdc2fed431f189800"><div class="ttname"><a href="../../dc/dfa/struct_x_segment3d.html#a6bc348097a6e197bdc2fed431f189800">XSegment3d::FractionToPoint</a></div><div class="ttdeci">XPoint3d FractionToPoint(double fraction) const</div><div class="ttdoc">比例到点</div></div>
<div class="ttc" id="astruct_x_segment3d_html_a6e613f9ccc9dc8473f7687edbb351ce5"><div class="ttname"><a href="../../dc/dfa/struct_x_segment3d.html#a6e613f9ccc9dc8473f7687edbb351ce5">XSegment3d::From</a></div><div class="ttdeci">static XSegment3d From(XPoint2dCR pnt0, XPoint2dCR point1)</div><div class="ttdoc">创建函数</div></div>
<div class="ttc" id="astruct_x_segment3d_html_a7b915ad581dde2135db888cda90c6708"><div class="ttname"><a href="../../dc/dfa/struct_x_segment3d.html#a7b915ad581dde2135db888cda90c6708">XSegment3d::Length</a></div><div class="ttdeci">double Length() const</div><div class="ttdoc">长度</div></div>
<div class="ttc" id="astruct_x_segment3d_html_a82197236bebccb2fa41d1fe69d026feb"><div class="ttname"><a href="../../dc/dfa/struct_x_segment3d.html#a82197236bebccb2fa41d1fe69d026feb">XSegment3d::FromZero</a></div><div class="ttdeci">static XSegment3d FromZero()</div><div class="ttdoc">创建函数</div></div>
<div class="ttc" id="astruct_x_segment3d_html_a8a0ba332460bc54d1a0de5d0a7c29167"><div class="ttname"><a href="../../dc/dfa/struct_x_segment3d.html#a8a0ba332460bc54d1a0de5d0a7c29167">XSegment3d::ProjectPointXY</a></div><div class="ttdeci">bool ProjectPointXY(XPoint3dR closestPoint, double &amp;closestParam, XPoint3dCR point) const</div><div class="ttdoc">投影点</div></div>
<div class="ttc" id="astruct_x_segment3d_html_a911cbae6465ac42bf498acf37baa7eac"><div class="ttname"><a href="../../dc/dfa/struct_x_segment3d.html#a911cbae6465ac42bf498acf37baa7eac">XSegment3d::ClosestApproachUnbounded</a></div><div class="ttdeci">static bool ClosestApproachUnbounded(double &amp;fraction0, double &amp;fraction1, XPoint3dR pnt0, XPoint3dR point1, XSegment3dCR seg0, XSegment3dCR seg1)</div><div class="ttdoc">两条线段（视为无界）最近的点</div></div>
<div class="ttc" id="astruct_x_segment3d_html_a943ae0113f607bdbbb25c2515db483dd"><div class="ttname"><a href="../../dc/dfa/struct_x_segment3d.html#a943ae0113f607bdbbb25c2515db483dd">XSegment3d::ClosestApproachBounded</a></div><div class="ttdeci">static void ClosestApproachBounded(double &amp;fraction0, double &amp;fraction1, XPoint3dR pnt0, XPoint3dR point1, XSegment3dCR seg0, XSegment3dCR seg1)</div><div class="ttdoc">两条有界线段最近的点</div></div>
<div class="ttc" id="astruct_x_segment3d_html_a96c349a3e9086d88f74a1e4588a4f379"><div class="ttname"><a href="../../dc/dfa/struct_x_segment3d.html#a96c349a3e9086d88f74a1e4588a4f379">XSegment3d::ProjectPoint</a></div><div class="ttdeci">bool ProjectPoint(XPoint3dR closestPoint, double &amp;closestParam, XPoint3dCR point) const</div><div class="ttdoc">投影点</div></div>
<div class="ttc" id="astruct_x_segment3d_html_ab058ce299b83943b7c200f04a22adf07"><div class="ttname"><a href="../../dc/dfa/struct_x_segment3d.html#ab058ce299b83943b7c200f04a22adf07">XSegment3d::GetRange</a></div><div class="ttdeci">bool GetRange(XRange3dR range) const</div><div class="ttdoc">计算范围</div></div>
<div class="ttc" id="astruct_x_segment3d_html_aba1efa080492a585ffe57d970165e06b"><div class="ttname"><a href="../../dc/dfa/struct_x_segment3d.html#aba1efa080492a585ffe57d970165e06b">XSegment3d::GetEndPoint</a></div><div class="ttdeci">void GetEndPoint(XPoint3dR pt) const</div><div class="ttdoc">获取终点</div></div>
<div class="ttc" id="astruct_x_segment3d_html_abc7f02d606ddd76daa971834a52c0729"><div class="ttname"><a href="../../dc/dfa/struct_x_segment3d.html#abc7f02d606ddd76daa971834a52c0729">XSegment3d::IntersectXY</a></div><div class="ttdeci">static bool IntersectXY(double &amp;fractionA, double &amp;fractionB, XPoint3dR pntA, XPoint3dR pntB, XSegment3dCR segA, XSegment3dCR segB)</div><div class="ttdoc">XY相交</div></div>
<div class="ttc" id="astruct_x_segment3d_html_ada3ff69cf417b8ad451fc96b6b3d8d47"><div class="ttname"><a href="../../dc/dfa/struct_x_segment3d.html#ada3ff69cf417b8ad451fc96b6b3d8d47">XSegment3d::FractionParameterToTangent</a></div><div class="ttdeci">bool FractionParameterToTangent(XPoint3dR point, XVec3dR tangent, double param) const</div><div class="ttdoc">比例到切线</div></div>
<div class="ttc" id="astruct_x_segment3d_html_adf68a478942fe964ab17f8ee680e31aa"><div class="ttname"><a href="../../dc/dfa/struct_x_segment3d.html#adf68a478942fe964ab17f8ee680e31aa">XSegment3d::From</a></div><div class="ttdeci">static XSegment3d From(XRay3dCR ray)</div><div class="ttdoc">创建函数</div></div>
<div class="ttc" id="astruct_x_segment3d_html_ae67ca6f5f9aa1a4a5aa24b69fe7868e6"><div class="ttname"><a href="../../dc/dfa/struct_x_segment3d.html#ae67ca6f5f9aa1a4a5aa24b69fe7868e6">XSegment3d::Init</a></div><div class="ttdeci">void Init(XPoint2dCR pnt0, XPoint2dCR point1)</div><div class="ttdoc">初始化数据</div></div>
<div class="ttc" id="astruct_x_segment3d_html_ae926ffc3541a7a13f3dcdab2d17f3b95"><div class="ttname"><a href="../../dc/dfa/struct_x_segment3d.html#ae926ffc3541a7a13f3dcdab2d17f3b95">XSegment3d::From</a></div><div class="ttdeci">static XSegment3d From(double x0, double y0, double z0, double x1, double y1, double z1)</div><div class="ttdoc">创建函数</div></div>
<div class="ttc" id="astruct_x_segment3d_html_af39dd63c7f943a017f11ee7b8cf5d8eb"><div class="ttname"><a href="../../dc/dfa/struct_x_segment3d.html#af39dd63c7f943a017f11ee7b8cf5d8eb">XSegment3d::PointToFractionParameter</a></div><div class="ttdeci">bool PointToFractionParameter(double &amp;param, XPoint3dCR point) const</div><div class="ttdoc">点到比例</div></div>
<div class="ttc" id="astruct_x_segment3d_html_af76ba47126d3255b1fd563096aea16b0"><div class="ttname"><a href="../../dc/dfa/struct_x_segment3d.html#af76ba47126d3255b1fd563096aea16b0">XSegment3d::ClosestApproachBoundedXY</a></div><div class="ttdeci">static void ClosestApproachBoundedXY(double &amp;fraction0, double &amp;fraction1, XPoint3dR pnt0, XPoint3dR point1, XSegment3dCR seg0, XSegment3dCR seg1)</div><div class="ttdoc">XY方向上两条有界线段最近的点</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="../../doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.3
</small></address>
</body>
</html>
